<?php 

	require "../classes/DB.php";
	
	$db=new DB();
	
	$remove = array("\\", "'");
	
	$Id_Hotel=	str_replace($remove, "", $HTTP_GET_VARS['Id_Hotel']);
    $Name=	str_replace($remove, "", $HTTP_GET_VARS['Name']);

	$result=$db->query("SELECT $Name FROM hoteles WHERE Id_Hotel='$Id_Hotel'") or die("Can't perform Query");
	
	$row=mysql_fetch_array($result);
	
	Header( "Content-type: image/jpeg");
	
	if(!empty($row[$Name]))
	echo $row[$Name];
	else
	return 'N';
?>